package com.song.ssm.month.service;

import com.github.pagehelper.PageInfo;
import com.song.ssm.month.pojo.Role;
import com.song.ssm.month.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author 宋伟宁
 * @Date 2023/9/25
 * @Version 1.0
 **/
@Transactional
public interface IUserService {

    User login(User user);

//    List<User> findUsers();

    PageInfo<User> page(Integer offset, Integer pagesize, User user);

    List<Role> roles();

    boolean hashName(String username);

    boolean save(User user);

    User findById(int id);

    boolean status(int id);

    List<Integer> findRoles(int uid);

    boolean del(String ids);
}
